home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7365 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  47 lines

  1. Newsgroups: comp.lang.c++
  2. Path: in1.uu.net!pilchuck!news
  3. From: Meiyu Lin <linm@data-io.com>
  4. Subject: Re: Help!!   floating point error??
  5. X-Nntp-Posting-Host: inet-gw
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <312CE073.718C@data-io.com>
  8. Sender: news@data-io.com (Usenet news)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: Data I/O Corp.
  11. References: <312A504E.55A@cyberus.ca>
  12. Mime-Version: 1.0
  13. Date: Thu, 22 Feb 1996 21:30:27 GMT
  14. X-Mailer: Mozilla 2.0 (Win95; I)
  15.  
  16. Brian Lawless wrote:
  17. > I seam to have buggered up the ability of Borland C++(ver 4.5) to read in
  18. > floating point numbers on this machine.  I am not having the same problem
  19. > when I run microsoft's visual C++ with my test code on the same machine.
  20. > This leads me to believe that the problem is isoloated with the Borland C++
  21. > settings.
  22. > This is my very simple test code that I am using to track down this pesky
  23. > problem.
  24. > #include <iostream.h>
  25. > int main()
  26. > {
  27. >         float myfloat;
  28. >         cout << "Float: ";
  29. >         cin >> myfloat;
  30. >         cout << "\N" << myfloat;
  31. >         return 0;
  32. > }
  33. > result:         "floating point:overflow"
  34. > I am very,very interested in any suggestions people might have to fix the
  35. > problem or alternatively any suggestions as to suitable reference material.
  36. > Please note that I am also running Windows 95 with 8 megs of RAM.
  37. > Thanks a bunch,
  38. > Briantry : double  myfloat
  39.